import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
 

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import '@/assets/globe.css'

Vue.config.productionTip = false

import { registerMicroApps, start } from 'qiankun';

registerMicroApps([ 
  {
    name: 'vueApp',
    entry: '//localhost:9001',
    container: '#container',
    activeRule: '/app-vue', 
    props: {a:[1]}
  },
]);
// 启动 qiankun
start();

Vue.config.errorHandler = function(err, vm, info) {
  console.log(err, vm, info);
} 

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
